Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@react-icons/all-files hasn't been updated in long time. Replace it with react-icons #642

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

onnimonni
Copy link
Contributor

@onnimonni onnimonni commented Nov 1, 2024

Context

This fixes the annoying DeprecationWarning and should allow us to use all of the new icons which are not available in @react-icons/all-files.

$ pnpm dev

> [email protected] dev /Users/onnimonni/Projects/nextjs-notion-starter-kit
> next dev

   ▲ Next.js 15.0.2
   - Local:        http://localhost:3000

 ✓ Starting...
 ✓ Ready in 3.2s
 ○ Compiling / ...
 ✓ Compiled / in 1286ms (759 modules)
(node:79829) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/onnimonni/Projects/nextjs-notion-starter-kit/node_modules/@react-icons/all-files/package.json' of 'lib'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)

Screenshots

Icons are rendering perfectly even after this change:
image

Copy link

vercel bot commented Nov 1, 2024

@onnimonni is attempting to deploy a commit to the Saasify Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

socket-security bot commented Nov 1, 2024

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: npm/@react-icons/[email protected]

View full report↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant